﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FA.FlightAttendant.Plugin;
using System.Collections.ObjectModel;
using System.Windows.Input;
using System.ComponentModel;
using FA.FlightAttendant.View.Commands;
using FA.FlightAttendant.Host;
using FA.Library.Plugin;
using System.Collections.Specialized;

namespace FA.FlightAttendant.ViewModel.Controls
{
    public class ListSimulatorsVM : ViewModel
    {
        public ICommand NewSimulatorCommand { get; set; }
        public ICommand EditSimulatorCommand { get; set; }
        public ICommand RemoveSimulatorCommand { get; set; }
        public ICommand StartStopSimulatorCommand { get; set; }

        /// <summary>
        /// The available plugins that are loaded.
        /// </summary>
        public ObservableCollection<Simulator> Simulators
        {
            get { return SimHost.Instance.Simulators; }
        }

        /// <summary>
        /// Constructor.
        /// </summary>
        public ListSimulatorsVM()
        {
            NewSimulatorCommand = new NewSimulatorCommand();
            EditSimulatorCommand = new EditSimulatorCommand();
            RemoveSimulatorCommand = new RemoveSimulatorCommand();
            StartStopSimulatorCommand = new StartStopSimulatorCommand();
        }
    }
}